home *** CD-ROM | disk | FTP | other *** search
/ Oh!X 2001 Spring / Oh!X 2001 Spring Special CD-ROM (Japan).7z / Oh!X 2001 Spring Special CD-ROM (Japan) (Track 1).bin / VC / layered2 / LayeredWnd.h < prev    next >
C/C++ Source or Header  |  2000-08-02  |  1KB  |  41 lines

  1. // LayeredWnd.h: LayeredWnd クラスのインターフェイス
  2. //
  3. //////////////////////////////////////////////////////////////////////
  4.  
  5. #if !defined(AFX_LAYEREDWND_H__F9EB8D6D_67C1_11D4_9897_00C00CB069F5__INCLUDED_)
  6. #define AFX_LAYEREDWND_H__F9EB8D6D_67C1_11D4_9897_00C00CB069F5__INCLUDED_
  7.  
  8. #if _MSC_VER > 1000
  9. #pragma once
  10. #endif // _MSC_VER > 1000
  11.  
  12. #include "resource.h"
  13.  
  14. BOOL InitInstance( HINSTANCE hInstance );
  15. void ExitInstance();
  16. LONG APIENTRY MainWndProc( HWND hWnd, UINT message, UINT wParam, LONG lParam );
  17.  
  18. class LayeredWnd  
  19. {
  20. public:
  21.     LayeredWnd( HINSTANCE hInstance );
  22.     virtual ~LayeredWnd();
  23.     HWND Create();
  24.     LRESULT WndProc( HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam );
  25.  
  26.     HINSTANCE m_hInstance;
  27.     HWND m_hWnd;
  28.     HBITMAP m_hBitmap;
  29.     int m_nWidth, m_nHeight;
  30.     HMENU m_hMenu;
  31.  
  32.     // メッセージ関数群
  33.     void OnCreate( HWND hWnd );
  34.     void OnDestroy();
  35.     void OnPaint( HDC hDC );
  36.     int OnNcHitTest( int xPos, int yPos );
  37.     void OnNcRButtonDown( int nHittest, POINTS pts );
  38. };
  39.  
  40. #endif // !defined(AFX_LAYEREDWND_H__F9EB8D6D_67C1_11D4_9897_00C00CB069F5__INCLUDED_)
  41.